//
//  SelectableOverlay.m
//  CarLifes
//
//  Created by yu on 2017/7/14.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import "SelectableOverlay.h"

@implementation SelectableOverlay

#pragma mark - MAOverlay Protocol

- (CLLocationCoordinate2D)coordinate {
    return [self.overlay coordinate];
}

- (MAMapRect)boundingMapRect {
    return [self.overlay boundingMapRect];
}

#pragma mark - Life Cycle

- (id)initWithOverlay:(id<MAOverlay>)overlay {
    self = [super init];
    if (self) {
        self.overlay = overlay;
        self.selected = NO;
        self.selectedColor = [UIColor colorWithRed:25/255. green:108/255. blue:247/255. alpha:0.8];
        self.regularColor = [UIColor colorWithRed:0.5  green:0.6  blue:0.9  alpha:0.8];
    }
    
    return self;
}

@end
